<?php
class ImagesController extends Controller
{
    public function actionIndex()
    {
        $colors=Yii::app()->image->set(518)->img->location;

        $this->render('index', array(
            'colors'=>$colors,
        ));
    }
}